package edu.ynu.se.xiecheng.achitectureclass.dao;

import edu.ynu.se.xiecheng.achitectureclass.entity.CameraCapture;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.time.LocalDateTime;
import java.util.List;

@Repository
public interface CameraCaptureRepository extends JpaRepository<CameraCapture, Long> {
    List<CameraCapture> findByDeviceSerialOrderByCaptureTimeDesc(String deviceSerial);
    List<CameraCapture> findByCaptureTimeBetweenOrderByCaptureTimeDesc(LocalDateTime startTime, LocalDateTime endTime);
} 